#pragma once

#include <string>
using namespace std;

#include "residentialBuilding.h"
class apartmentBuilding :
	public residentialBuilding
{
protected:
	int numApartments;
public:

	apartmentBuilding()
	{
	}

	apartmentBuilding(string info, int numApartments) : residentialBuilding(info)
	{
		this->numApartments = numApartments;
	}

	int getNumApartments()
	{
		return numApartments;
	}

	void setNumApartments(int num)
	{
		numApartments = num;
	}

	~apartmentBuilding()
	{
	}

	virtual void print()
	{
		residentialBuilding::print();
		cout << "numApartments = " << numApartments << endl;
	}
};

